import java.util.*;
import java.math.*;

/*
 * We create some facilities inside this class
 */
public class Utilis 
{
	public static void show(String s)
	{
		if(null == s)
		{
			System.out.print("Error, string cannot be NULL!\n");
			return;
		}
		
		System.out.print(s);
		System.out.print("\n");
	}
	
	public static double calDistance(int source_x, int source_y, int dest_x, int dest_y)
	{
		if(source_x >= 0 && source_y >= 0 && dest_x >= 0 && dest_y >= 0)
		{
			double distance =  (source_x - dest_x) * (source_x - dest_x) +
									(source_y - dest_y) * (source_y - dest_y);
			distance = Math.sqrt(distance);

			return distance;
		}
		
		System.out.print("Error, X OR Y axis must be 0 or positive!\n");
		return -1;
	}
	
	public static boolean isNeighbor(double distance, double standard)
	{
		if(distance > standard)
			return false;
		else 
			return true;
	}

}
